package com.vtest.quartz.controller;

import com.vtest.quartz.task.report.CommonReport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: Quartz
 * @author: tiger
 * @create: 2025-11-26 16:06
 * @Description :
 */

@RestController
@RequestMapping("/common")
public class CommonController {

    @Autowired
    private CommonReport report;

    @RequestMapping("/FTHoldReport")
    public String runFTHoldReport(String lotNum) {
        report.sendFTHoldReport(lotNum.substring(0, 3), lotNum);
        return "请注意邮箱,Excel已经发送";
    }
}
